const { session } = require('electron');
const path = require('path');

module.exports = function loadExtensions() { 
    // Vue 开发者工具
    session.defaultSession.extensions.loadExtension(path.resolve(__dirname, '../resource/extensions/vue-devtools/5.1.1'), { allowFileAccess: true })
        .then((ext) => console.log(`Added extension:  ${ext.name}`))
        .catch((err) => console.log('An error occurred when add extension: ', err));
}
